package work2;

import java.io.*;

public class BRDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis1=new FileInputStream("test.txt");
        InputStreamReader isw1=new InputStreamReader(fis1);
        BufferedReader br1=new BufferedReader(isw1);
        String line1;
        while ((line1=br1.readLine())!=null){
            System.out.println(line1);
        }
        br1.close();
    }
}
